package Test;

import java.util.Stack;

public class Test1 {
	public static void main(String[] args) {

		
		
	}

	private static void M1() {
		Stack<Integer> stack=new Stack<Integer>();
		stack.push(1);
		stack.push(2);
		stack.push(3);
		stack.push(4);
		stack.push(5);
		/*for (Integer integer : stack) {
			
			System.out.println(integer.toString());
		}*/
		stack.pop();
		for (int i = 0; i < stack.size(); i++) {
			
			System.out.println(stack.get(i));
		}
	}

}
